package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class PostData implements Parcelable {
	@JsonProperty("id")
	String id;
	@JsonProperty("forum_id")
	String forumId;
	@JsonProperty("body")
	String body;
	@JsonProperty("postedDate")
	String postedDate;
	@JsonProperty("parentPostId")
	String parentPostId;
	@JsonProperty("user_full_name")
	String userFullName;
	
	@JsonProperty("like_count")
	String likeCount;
	
	

	public String getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(String likeCount) {
		this.likeCount = likeCount;
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getForumId() {
		return this.forumId;
	}

	public void setForumId(String forumId) {
		this.forumId = forumId;
	}

	public String getBody() {
		return this.body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getPostedDate() {
		return this.postedDate;
	}

	public void setPostedDate(String postedDate) {
		this.postedDate = postedDate;
	}

	public String getParentPostId() {
		return this.parentPostId;
	}

	public void setParentPostId(String parentPostId) {
		this.parentPostId = parentPostId;
	}

	public String getUserFullName() {
		return this.userFullName;
	}

	public void setUserFullName(String userFullName) {
		this.userFullName = userFullName;
	}

	protected PostData(Parcel in) {
		id = in.readString();
		forumId = in.readString();
		body = in.readString();
		postedDate = in.readString();
		parentPostId = in.readString();
		userFullName = in.readString();
		
		likeCount = in.readString();
	}

	public PostData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(forumId);
		dest.writeString(body);
		dest.writeString(postedDate);
		dest.writeString(parentPostId);
		dest.writeString(userFullName);
		dest.writeString(likeCount);
	}

	public static final Parcelable.Creator<PostData> CREATOR = new Parcelable.Creator<PostData>() {
		public PostData createFromParcel(Parcel in) {
			return new PostData(in);
		}

		public PostData[] newArray(int size) {
			return new PostData[size];
		}
	};
}